package homework.mid_autumn_festival.string_exercise;

public class LengthDemo {
    public static void main(String[] args) {
        String str = "我爱赚钱";
        int len = str.length();
        System.out.println("字符串长度为:"+len);//4

    }
}
